<div>
<div class="yui-b">
<div id="appmenu" class="yuimenubar yuimenubarnav">
<div class="bd">
<ul class="first-of-type">
	<li class="yuimenubaritem first-of-type"><g:link class="yuimenubaritemlabel" uri="/">Home</g:link></li>
	<li class="yuimenubaritem first-of-type"><a
		class="yuimenubaritemlabel" href="#help">Help</a>
	<div id="help" class="yuimenu">
	<div class="bd">
	<ul>
		<li class="yuimenuitem"><g:link controller="help" action="faq" >FAQ</g:link></li>
		<li class="yuimenuitem"><g:link controller="help" action="about">About</g:link></li>
	</ul>
	</div>
	</div>
	</li>
	<g:ifLoggedIn>
    <li class="yuimenubaritem first-of-type" style="float: right">
       <g:link controller="logout" action="index">Logout</g:link>
    </li>
	<g:ifUserHasRole roles="ROLE_ADMIN">
    <li class="yuimenubaritem first-of-type" style="float: right"><g:link uri="#admin">Admin</g:link>
    <div id="admin" class="yuimenu">
    <div class="bd">
    <ul>
        <li class="yuimenuitem first-of-type"><g:link controller="user" action="list" >User List</g:link></li>
        <li class="yuimenuitem first-of-type"><g:link controller="user" action="create" >New User</g:link></li>
        <li><hr style="border: 0px; border-top: 1px solid #ccc;"/></li>
        <li class="yuimenuitem first-of-type"><g:link controller="test" action="list" >Test List</g:link></li>
        <li class="yuimenuitem first-of-type"><g:link controller="test" action="create" >New Test</g:link></li>
        <li><hr style="border: 0px; border-top: 1px solid #ccc;"/></li>
        <li class="yuimenuitem first-of-type"><g:link controller="assignment" action="create" >Assign a Test</g:link></li>
        <li><hr style="border: 0px; border-top: 1px solid #ccc;"/></li>
        <li class="yuimenuitem first-of-type"><g:link controller="assignment" action="ofTest" >Tests Report</g:link></li>
    </ul>
    </div>
    </div>
    </li>
	</g:ifUserHasRole>
    <li class="yuimenubaritem first-of-type" style="float: right"><g:link uri="#preference">Preference</g:link>
    <div id="preference" class="yuimenu">
    <div class="bd">
    <ul>
        <li class="yuimenuitem first-of-type"><g:link controller="user" action="profile" >My Profile</g:link></li>
        <li class="yuimenuitem first-of-type"><g:link controller="user" action="editProfile" >Edit My Profile</g:link></li>
    </ul>
    </div>
    </div>
    </li>
	</g:ifLoggedIn>
    <g:ifNotLoggedIn>
	<li class="yuimenubaritem first-of-type" style="float: right">
	   <g:link controller="login" action="index">Login</g:link>
	</li>
    </g:ifNotLoggedIn>
</ul>
</div>
</div>
</div>
</div>